package com.ruoyi.shopping.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.employer.domain.CargoUser;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * 商品评价管理对象 commodity_evaluate
 * 
 * @author fxy
 * @date 2024-08-14
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class CommodityEvaluate extends BaseEntity
{
//    private static final long serialVersionUID = 1L;

    /** ID */
    @Excel(name = "ID")
    private Long id;

    /** 评分内容 */
    @Excel(name = "评分内容")
    private Long evaluateScore;

    /** 评价内容 */
    @Excel(name = "评价内容")
    private String evaluateContent;

    /** 评价图片 */
    @Excel(name = "评价图片")
    private String contentImage;

    /** 评价时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "评价时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date evaluateTime;

    /** 评价点赞量 */
    @Excel(name = "评价点赞量")
    private Long likesNumber;

    /** 回复量 */
    @Excel(name = "回复量")
    private Long replyNumber;

    /** 关联的商品ID */
    @Excel(name = "关联的商品ID")
    private Long commodityId;
    /** 商品名称 */
    @TableField(exist = false)
    private Commodity commodity;
    @TableField(exist = false)
    private String commodityName;
    @TableField(exist = false)
    private String avatar;

    /** 关联的货主ID */
    @Excel(name = "关联的货主ID")
    private Long cargoUserId;
    /** 商品名称 */
    @TableField(exist = false)
    private CargoUser cargoUser;
    @TableField(exist = false)
    private String cargoUserName;

    /** 关联的订单ID */
    @Excel(name = "关联的订单ID")
    private Long commodityOrderId;

    /** 1未审核，2审核通过，3审核未通过 */
    @Excel(name = "1未审核，2审核通过，3审核未通过")
    private Long status;

    /** 逻辑删除（0未删除，1删除） */
    private Long del;


}
